package pub.guoxin.oops.common.protocol.adapter.impl;

import pub.guoxin.oops.common.protocol.adapter.AbstractDataProtocolCodeAdapter;
import pub.guoxin.oops.common.protocol.builder.DataProtocolCodeRegister;
import pub.guoxin.oops.common.protocol.entity.map.DataProtocolCodeMap;

/**
 * Created by guoxin on 18-3-10.
 */
public class DataProtocolCodeAdapterImpl extends AbstractDataProtocolCodeAdapter {

    @Override
    public DataProtocolCodeRegister register(DataProtocolCodeRegister register) {
        register
                .register(1, "升级")
                .register(2,"上传数据");
        return register;
    }

    public static void main(String[] args) {
        AbstractDataProtocolCodeAdapter abstractDataProtocolCode = new DataProtocolCodeAdapterImpl();
        DataProtocolCodeMap build = abstractDataProtocolCode.build();
        System.out.println(build.toString());
    }
}
